
/**
 * Write a description of class Passager here.
 * 
 * @author (your name) 
 * @version (a version number or a date)
 */
public class Passager
{
   // Attribus
    private boolean estAssis;
    private boolean estDebout;

    /**
     * Constructor for objects of class Passager
     */
    public Passager()
    {
        // initialise instance variables
        System.out.println(" Création d'un passager a l'etat debout");
        estAssis = false;
        estDebout = true;
    }
    
    // Accesseurs
    
    public boolean getEtatAssis(){
        return estAssis;
    }
    
    public boolean getEtatDebout(){
        return estDebout;
    }
    
    //mutateurs
    public void setEtatAssis(boolean a){
        estAssis = a;
    }
    
    public void setEtatDebout(boolean d){
        estDebout = d;
    }
    
    //Methodes d'instance
    public void changerEtatEnAssis(){
        estAssis = true;
        estDebout = false;
    }
}
